<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('家长')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-parent_name" disabled  data-field="nickname" class="form-control " type="text" value="{$row['parent_name']}">
        </div>
    </div>
    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-user_id"  data-rule="required" data-source="user/user/selectpage" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" data-params='{"custom[user_type]":"1"}' data-search-field="nickname,mobile" data-format-item="{nickname} - {mobile}" value="{$row['user_id']}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('StudentName')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-student_id" disabled data-rule="required" data-source="user/student/selectpage" data-field="name" class="form-control selectpage" name="row[student_id]" type="text"  value="{$row['student_id']}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('课程')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-data_id" data-rule="required" data-source="course/course/selectpage" data-field="name" class="form-control selectpage" name="row[data_id]" type="text" data-params='{"custom[switch]":"1"}' value="{$row['course_id']}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-primary "  data-toggle="select_classes" data-title="选择班次">选择班次</button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <div class="classes_div"></div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('剩余课时')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-surplus_class_hour" data-rule="required"  class="form-control " name="surplus_class_hour" type="text"  value="{$oldOrderInfo['surplus_class_hour']}">
        </div>
    </div>
    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-config"  data-source="course/course/selectpage" data-field="name" class="form-control config " name="row[config]" type="text" value="">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
